package com.liujiajin.param;

import lombok.Data;

@Data
public class BaseResult<T> {
    /*
    * 响应码
    * */
    private Integer code;
    /**
     * 是否成功
     * true 成功
     * false 失败
     */
    private Boolean success;
    /**
     * 响应信息
     */
    private String msg;
    /**
     * 响应数据
     */
    private T data;

    public BaseResult(Integer code, Boolean success, String msg, T data) {
        this.code = code;
        this.success = success;
        this.msg = msg;
        this.data = data;
    }
    public BaseResult() {
    }
}
